<p class="Paragraph">Right (Text As String, n As Integer) <help:key-word value="Right" tag="kw66594_1" xmlns:help="http://openoffice.org/2000/help"/></p>
<p class="Paragraph">Text: Any string expression from which to return the rightmost characters.</p>
<p class="Paragraph">n: Integer expression that defines the number of characters to be returned. If <span class="T1">n</span> = 0 a zero-length string is returned.</p>
<p class="Paragraph">The following example converts the given date in the format (YYYY-MM-DD) to the US date format (MM/DD/YYYY).</p>
<p class="P2">Example:</p>
<p class="PropText">Sub ExampleUSDate</p>
<p class="PropText">Dim sInput As String</p>
<p class="PropText">Dim sUS_date As String</p>
<p class="PropText">sInput = InputBox("Please input a date in the international format 'YYYY-MM-DD'")</p>